package com.test.bean;

import javax.print.attribute.standard.MediaSize;

public class People {
    Rice rice;
    String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        System.out.println("name-----------------------");
        this.name = name;
    }
    public Rice getRice() {
        return rice;
    }
    public void setRice(Rice rice) {
        System.out.println("rice-----------------------");
        this.rice = rice;
    }
    public void eat(){
        rice.showName();
        System.out.println(name);
    }
   public People(){
        System.out.println("people-------------------");
    }
}
